package com.example.homework.fragment;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class AlarmReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        // 闹钟触发时的操作（例如显示通知）
        Toast.makeText(context, "闹钟时间到！", Toast.LENGTH_LONG).show();
        // 可添加通知栏通知、启动指定 Activity 等逻辑
    }
}